package com.zhentao.file.service;

import io.minio.errors.*;

import java.io.IOException;
import java.io.InputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @Date 2024/5/9 10:26
 * @Author xdm
 **/

public interface FileStorageService {

    //上传  html  png  jpg  mp3  mp4

    public String uploadImageFile(String fileName, InputStream inputStream);
    /**
     * 上传html文件到minio里面
     * @param fileName
     * @param inputStream
     * @return  地址
     */
    public String uploadHtmlFile(String fileName,InputStream inputStream) throws IOException, ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
    //下载
    //删除

}
